﻿@model NVSecurity.Areas.Admin.Models.LogOnModel
@{
    Layout = null;   
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Đăng Nhập Hệ Thống NVSecurity.Vn</title>
    <link href="~/Areas/Admin/Content/css/styleAdmin.css" rel="stylesheet" type="text/css" />
    <!--JQuery Validation Pluggin-->
    @Scripts.Render("~/bundles/jqueryval")
     <script type="text/javascript" src="~/Scripts/jquery.validate.js"></script>
    <style>
        .validate {
            color:red;
        }
    </style>
</head>

<body>
    <div class="bg-login">
        @using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { enctype = "multipart/form-data" }))
        { 
             @Html.AntiForgeryToken()
            
            <ul class="form-login">
                <li>
                    <label>Tên Đăng Nhập</label>
                    @Html.TextBoxFor(m=>m.UserName,new { @class = "required" })
                    <p> @Html.ValidationMessageFor(m => m.UserName, null,new { @class="validate"})</p>
                </li>
                <li>
                    <label>Mật khẩu</label>
                    @Html.PasswordFor(m => m.Password, new { @class = "required" })
                    <p> @Html.ValidationMessageFor(m => m.Password, null,new { @class="validate"})</p>
                </li>
                <li style="color:red; ">
                    <p>@ViewBag.error</p>
                    @Html.ValidationSummary(true)
                </li>
                <li>
                    <input type="submit" value="Đăng Nhập" /></li>
            </ul>
        }
    </div>
</body>
</html>
